//
//  CustomerInfoDetail.m
//  Trading365
//
//  Created by Jason on 12-3-22.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "CustomerInfoDetail.h"
#import "Type.h"

@implementation CustomerInfoDetail
@synthesize table;


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title=@"详细信息";
    [self.table setBackgroundColor:BACKGROUND_COLOR];

    
    NSArray *temp_array=[[NSArray alloc]initWithObjects: @"客户编码",
                         @"客户名称",                     @"简称",
                         @"英文名称",                     @"客户类型",
                         @"客户来源",                     @"所属业务员",
                         @"信用等级",                     @"国家/区域",
                         @"上级客户",                     @"主营产品",
                         @"首次联系时间",                 @"公司地址",
                         @"公司成立年份",                 @"邮编",
                         @"快件账号",                    @"传真",
                         @"电话",                         @"主页",
                         @"年销售额（美元）",
                         @"银行户头",                      @"备注",
                         @"发送邮件是否审批",@"发送邮件抄送人",nil];
    self.InfoListTitle=temp_array;
    [temp_array release];
    
     NSArray *temp_array2=[[NSArray alloc]initWithObjects:@"customer_code", 
                           @"customer_name_cn",@"customer_short_name", 
                           @"customer_name_en",@"customer_type_name",
                           @"dict_name_cn",@"emname",
                           @"creadit_level",@"country_area_name",
                           @"parentname",@"products",
                           @"first_contract",@"address",
                           @"create_date",@"post_code",
                           @"delivery_adress", @"fax",
                           @"telphone",@"web_site",
                           @"year_sales",
                           @"bank_account",@"customer_remarks",
                           @"is_send_mail_limit",@"ccname", nil];
    self.InfoListName=temp_array2;
    [temp_array2 release];
    /*@"default_image_id",@"customer_name_cn",@"customer_type_name",
     @"creadit_level",@"",nil];*/   
}

- (void)viewDidUnload
{
    [self setTable:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (void)dealloc {
    [table release];
    [super dealloc];
}

#pragma mark - Table view data source
//

#pragma mark - Table view delegate
//

@end
